home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1771 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  962 b 

  1. Path: newsbf02.news.aol.com!not-for-mail
  2. From: awhang8367@aol.com (AWhang8367)
  3. Newsgroups: comp.lang.c++
  4. Subject: Object with Interrupt Service Routine
  5. Date: 12 Jan 1996 16:09:42 -0500
  6. Organization: America Online, Inc. (1-800-827-6364)
  7. Sender: root@newsbf02.news.aol.com
  8. Message-ID: <4d6imm$okq@newsbf02.news.aol.com>
  9. Reply-To: awhang8367@aol.com (AWhang8367)
  10. NNTP-Posting-Host: newsbf02.mail.aol.com
  11.  
  12.   I have been struggling to create an object that handles hardware
  13. interrupt directly.  Particularly with the setvect function as it takes in
  14. pointers to interrupts 
  15. ^^^^^^^^^
  16. and not to objects.  Two things I can do (and I have accomplished ther
  17. former):
  18.  
  19.    1)  Use an interrupt service routine to call the object.
  20.    2)  directly write the address of the member function to the Interrupt
  21. vector table
  22.  
  23.   Both implementations seems to be very clumsy.  Does anyone know of a
  24. good way of doing it?  Any pointer or email interrupt will be greatly
  25. appreciated.
  26.